# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=lsrtunnel
pkgver=0.2
pkgrel=4
pkgdesc='Spoofs connections using source routed packets.'
url='http://www.synacklabs.net/projects/lsrtunnel/'
depends=('libpcap' 'libdnet')
license=('GPL')
arch=('x86_64' 'aarch64')
groups=('blackarch' 'blackarch-spoof')
source=("https://dl.packetstormsecurity.net/UNIX/security/$pkgname-$pkgver.tar.gz")
sha512sums=('6d46dd2c95e09d2712356809892db21349f22413d60b3bbb5ffa5aff15f865f15f05d5d9e8366283cefbc0ad9e596fa01e8086c031a2bcce5cf6cd206ddcf9db')

build() {
  cd "$pkgname-$pkgver"

  ./configure --prefix=/usr --mandir=/usr/share/man

  make
}

package(){
  cd "$pkgname-$pkgver"

  make DESTDIR=$pkgdir install
}

